<div th:fragment="frag(list)">
	<th:block th:with="pageData=${list.listData}">
		<!-- /.box-body -->
		<div class="box-footer clearfix" th:if="${list.paging() and pageData.rows.size() > 0}">
			总共<span th:text="${pageData.results}" class="badge bg-primary"></span>条记录
			<ul class="pagination pagination-sm no-margin pull-right">
				<!-- 首页 -->
				<li>
					<a class="bg-light-blue" th:if="${pageData.page > 1}" data-app-page="1">&laquo;&laquo;</a>
				</li>
				<!-- 上一页 -->
				<li>
					<a class="bg-light-blue" th:if="${pageData.page > 1}" th:data-app-page="${pageData.page - 1}">&laquo;</a>
				</li>
				<!-- 所有页码 -->
				<th:block th:each="i : ${#numbers.sequence(pageData.startPage, pageData.endPage)}">
				<li>
					<a th:class="${i == pageData.page ? 'bg-light-blue-active' : 'bg-light-blue'}" th:data-app-page="${i}" th:text="${i}"></a>
				</li>
				</th:block>
				<!-- 下一页 -->
				<li>
					<a class="bg-light-blue" th:if="${pageData.page < pageData.pages}" th:data-app-page="${pageData.page + 1}">&raquo;</a>
				</li>
				<!-- 最后一页 -->
				<li>
					<a class="bg-light-blue" th:if="${pageData.page < pageData.pages}" th:data-app-page="${pageData.pages}">&raquo;&raquo;</a>
				</li>
			</ul>
		</div>
	</th:block>
</div>
